#include "Sort.h"


void TestInsertSort(void)
{
	int a[] = { 1, 3, 2, 4, 2, 6, 7, 5 };

	InsertSort(a, sizeof(a) / sizeof(a[0]));
	PrintArray(a, sizeof(a) / sizeof(a[0]));
}

void TestShellSort(void)
{
	int a[] = { 1, 3, 2, 4, 2, 6, 7, 5 };

	ShellSort(a, sizeof(a) / sizeof(a[0]));
	PrintArray(a, sizeof(a) / sizeof(a[0]));
}

void TestSelectSort(void)
{
	int a[] = { 1, 3, 2, 4, 2, 6, 7, 5 };

	ShellSort(a, sizeof(a) / sizeof(a[0]));
	PrintArray(a, sizeof(a) / sizeof(a[0]));
}

void TestHeapSort(void)
{
	int a[] = { 1, 3, 2, 4, 2, 6, 7, 5 };

	HeapSort(a, sizeof(a) / sizeof(a[0]));
	PrintArray(a, sizeof(a) / sizeof(a[0]));
}

int main()
{
	/*TestInsertSort();
	TestShellSort();*/
	TestSelectSort();
	TestHeapSort();

	return 0;
}